package com.tools.springDemo;

import org.apache.ibatis.type.Alias;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

//@ComponentScan("com.tools.springDemo")
@Configuration
public class AppConfig {
//
    @Bean(initMethod = "init",destroyMethod = "des")
    public AAA AAA(){
        return new AAA("sd");
    }
//

    public AppConfig(){
        System.out.println("\n Appconfig");
    }

}


